<?php /* Smarty version 2.6.16, created on 2012-04-07 02:22:13
         compiled from left.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', 'left.tpl', 16, false),)), $this); ?>
<div class="left-panel-inner">
   <div class="graphite demo-container">
	<ul class="accordion" id="accordion-1">
	<?php if ($this->_tpl_vars['Numgame'] > 0): ?>
	  <?php unset($this->_sections['game']);
$this->_sections['game']['name'] = 'game';
$this->_sections['game']['loop'] = is_array($_loop=$this->_tpl_vars['gameArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['game']['show'] = true;
$this->_sections['game']['max'] = $this->_sections['game']['loop'];
$this->_sections['game']['step'] = 1;
$this->_sections['game']['start'] = $this->_sections['game']['step'] > 0 ? 0 : $this->_sections['game']['loop']-1;
if ($this->_sections['game']['show']) {
    $this->_sections['game']['total'] = $this->_sections['game']['loop'];
    if ($this->_sections['game']['total'] == 0)
        $this->_sections['game']['show'] = false;
} else
    $this->_sections['game']['total'] = 0;
if ($this->_sections['game']['show']):

            for ($this->_sections['game']['index'] = $this->_sections['game']['start'], $this->_sections['game']['iteration'] = 1;
                 $this->_sections['game']['iteration'] <= $this->_sections['game']['total'];
                 $this->_sections['game']['index'] += $this->_sections['game']['step'], $this->_sections['game']['iteration']++):
$this->_sections['game']['rownum'] = $this->_sections['game']['iteration'];
$this->_sections['game']['index_prev'] = $this->_sections['game']['index'] - $this->_sections['game']['step'];
$this->_sections['game']['index_next'] = $this->_sections['game']['index'] + $this->_sections['game']['step'];
$this->_sections['game']['first']      = ($this->_sections['game']['iteration'] == 1);
$this->_sections['game']['last']       = ($this->_sections['game']['iteration'] == $this->_sections['game']['total']);
?>
	   <li><a href="replays.php?game_id=<?php echo $this->_tpl_vars['gameArr'][$this->_sections['game']['index']]['game_id']; ?>
"><?php echo $this->_tpl_vars['gameArr'][$this->_sections['game']['index']]['game_name']; ?>
</a>
	   </li>
	  <?php endfor; endif; ?>
	<?php endif; ?>    
      </ul>
  </div> 
   <div class="advertise" style="overflow:hidden;">
       <h2 title="Advertisement"></h2>
	   <?php unset($this->_sections['ads']);
$this->_sections['ads']['name'] = 'ads';
$this->_sections['ads']['loop'] = is_array($_loop=$this->_tpl_vars['adArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['ads']['show'] = true;
$this->_sections['ads']['max'] = $this->_sections['ads']['loop'];
$this->_sections['ads']['step'] = 1;
$this->_sections['ads']['start'] = $this->_sections['ads']['step'] > 0 ? 0 : $this->_sections['ads']['loop']-1;
if ($this->_sections['ads']['show']) {
    $this->_sections['ads']['total'] = $this->_sections['ads']['loop'];
    if ($this->_sections['ads']['total'] == 0)
        $this->_sections['ads']['show'] = false;
} else
    $this->_sections['ads']['total'] = 0;
if ($this->_sections['ads']['show']):

            for ($this->_sections['ads']['index'] = $this->_sections['ads']['start'], $this->_sections['ads']['iteration'] = 1;
                 $this->_sections['ads']['iteration'] <= $this->_sections['ads']['total'];
                 $this->_sections['ads']['index'] += $this->_sections['ads']['step'], $this->_sections['ads']['iteration']++):
$this->_sections['ads']['rownum'] = $this->_sections['ads']['iteration'];
$this->_sections['ads']['index_prev'] = $this->_sections['ads']['index'] - $this->_sections['ads']['step'];
$this->_sections['ads']['index_next'] = $this->_sections['ads']['index'] + $this->_sections['ads']['step'];
$this->_sections['ads']['first']      = ($this->_sections['ads']['iteration'] == 1);
$this->_sections['ads']['last']       = ($this->_sections['ads']['iteration'] == $this->_sections['ads']['total']);
?>
	   <?php if ($this->_tpl_vars['adArr'][$this->_sections['ads']['index']]['ads_type'] == '1'): ?>
          <?php echo ((is_array($_tmp=$this->_tpl_vars['adArr'][$this->_sections['ads']['index']]['ads_code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

	   <?php else: ?>
          <a href="<?php echo $this->_tpl_vars['adArr'][$this->_sections['ads']['index']]['ads_link']; ?>
"><img src="uploaded/ads_images/<?php echo $this->_tpl_vars['adArr'][$this->_sections['ads']['index']]['ads_banner']; ?>
" /></a>
	   <?php endif; ?>
	   <?php endfor; endif; ?>
   </div>  
 </div>